﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MBaoYangEdit.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MarketModel.MBaoYangEdit" %>


<script type="text/javascript">
    $(document).ready(function () {
        $("#MBaoYangEdit_ZSYY").change(function () {
            changeMBaoYangEditZSYY($(this).val());
        })
        function changeMBaoYangEditZSYY(key) {
            key = encodeURI(key);
            var url = "MarketModel/MBaoYangGetZSYY.aspx?id=<%=ID %>&key=" + key
            $("#MBaoYangEdit_LoadZSYY").loadUrl(url);

        }
        changeMBaoYangEditZSYY("<%=obj.ZSYY %>");
    })


</script>
<div class="pageContent">
	<form method="post" action="MarketModel/MBaoYangEdit.aspx?ajaxmethod=edit&ID=<%=ID %>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent MBaoYangEdit" layoutH="58">             
               <p>
				    <label>申&nbsp;&nbsp;请&nbsp;&nbsp;人：</label>
                    <input name="SQR" type="text" value="<%=obj.SQR %>" class="required textInput "/>
			   </p>
               <p>
				    <label>经&nbsp;&nbsp;销&nbsp;&nbsp;商：</label>
                    <input name="JXS" type="text" value="<%=obj.JXS %>" class="required textInput  " />
			   </p>
               <div class="divider"></div>
               <p>
				    <label>用&nbsp;&nbsp;户&nbsp;&nbsp;名：</label>
				    <input name="YHM" class="  " type="text" value="<%=obj.YHM %>" alt=""/>
			   </p>
              <div class="divider"></div>
              <p>
				    <label>机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</label>
				    <input  name="JX" class="" type="text" value="<%=obj.JX %>" size="" alt=""/>
			   </p>
               <p>
				    <label>机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</label>
				    <input  name="JH" class="" type="text" value="<%=obj.JH %>" size="" alt=""/>
			   </p>
               <div class="divider"></div>
               <p>
                    <label>赠送原因：</label>
                    <select id="MBaoYangEdit_ZSYY" name="ZSYY"　class="required"　>
                            <option value="展会政策" <%= obj.ZSYY=="展会政策"?"selected":"" %>>展会政策</option>
                            <option value="40/100终端" <%= obj.ZSYY=="40/100终端"?"selected":"" %>>40/100终端</option>
                            <option value="其他" <%= obj.ZSYY=="其他"?"selected":"" %>>其他</option>
                           
                    </select>
                </p>
                <div style="clear:both;" id="MBaoYangEdit_LoadZSYY">
                    赠送原因内容
                </div>                
                <div class="divider"></div>
                <p>
                    <label>配件种类：</label>
                    <select name="PJZL"　class="required"　>
                            <option value="1000小时内3次" <%= obj.PJZL=="1000小时内3次"?"selected":"" %>>1000小时内3次</option>
                            <option value="2000小时内8次" <%= obj.PJZL=="2000小时内8次"?"selected":"" %>>2000小时内8次</option>
                           
                    </select>
                </p>
                <p>
				    <label>数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量：</label>
				    <input  name="SL" class="" type="text" value="<%=obj.SL %>" />
			    </p>
                <p>
				    <label>申请时间：</label>
				    <input  name="SQSJ" class="date" type="text" value="<%=Convert.ToDateTime(obj.SQSJ).ToString("yyyy-MM-dd") %>"/>
			    </p>
                 <p>
				    <label>执行时间：</label>
				    <input  name="ZXSJ" class="date" type="text" value="<%=obj.ZXSJ %>" />
			    </p>
                
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">添加</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

